﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sort_letters
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = "щъыьэюяабвгдопрстуфхцчшежзийклмн";
            char[] arr = s.ToCharArray();
            char d =' ';
            for (int i = 0; i < arr.Length; i++)
            {
                for (int j = 0; j < arr.Length; j++)
                {
                 if(arr[i]<arr[j])
                    {
                        d = arr[i];
                        arr[i] = arr[j];
                        arr[j] = d;
                    }
                }
            }
            
            for (int i = 0; i < arr.Length; i++)
            
            {
                Console.Write(arr[i] + " ");
            }
        }
    }
}
        